const plugins = [
    // elementui按需加载
    // 使用了cdn
    /*[
        "component",
        {
            "libraryName": "element-ui",
            "styleLibraryName": "theme-chalk"
        }
    ]*/
];
// 等于开发环境
if (process.env.NODE_ENV === 'development') {
    plugins.push([
        "component",
        {
            "libraryName": "element-ui",
            "styleLibraryName": "theme-chalk"
        }]);
}
// 去除console.log
if (process.env.NODE_ENV === 'production') {
    plugins.push('transform-remove-console');
}
module.exports = {
    "presets": [
        "@vue/cli-plugin-babel/preset"
    ],
    plugins
    /* "plugins": [
         [
             "component",
             {
                 "libraryName": "element-ui",
                 "styleLibraryName": "theme-chalk"
             }
         ],
         ['transform-remove-console'],
     ]*/
}
